package cn.edu.scau.cmi.zhangjinchuan.hibernate.domain;

import java.util.Set;

import java.util.HashSet;

public class Teacher implements java.io.Serializable{
	
	private String id;
	private String name;
	private Set students;
	
	public Teacher() {
		
	}
	
	public Teacher(String id) {
		this.id = id;
	}
	
	public Teacher(String id, String name) {
		this.id = id;
		this.name = name;
	}
	
	public Teacher(String id, String name, Set<Student>students) {
		this.id = id;
		this.name = name;
		this.students = students;
	}
	
	public String getId() {
		return this.id;
	}
	
	public void setId(String id) {
		this.id = id;
	}
	
	public String getName() {
		return this.name;
	}
	
	public void setName(String name) {
		this.name = name;
	}
	
	public Set getStudents() {
		return this.students;
	}
	
	public void setStudents(Set students) {
		this.students = students;
	}
		
}